package com.eastdigit.system.model;

import com.eastdigit.util.PropertiesUtil;

/**
 * Created by hehz on 2016/7/20.
 */
public class Constants {

    public static boolean LOGIN_CAPTCHA = "true".equals(PropertiesUtil.getProperty("project.login.captcha"));

    public static final String SUPER_USER_ID = "1";// 超级管理员
    public static final String DEPT_ROOT_PARENT_ID = "0";// 部门根节点上级id

    public static final String MENU_ROOT_ID = "0";// 菜单根节点id
    public static final String MENU_TYPE_FUNCTION = "1";// 功能点
    public static final String MENU_TYPE_MENU = "0";// 菜单
    public static final String MENU_STATE_ENABLE = "1";// 菜单有效
    public static final String MENU_STATE_DISABLE = "0";// 菜单无效

    // public static final String USER_CACHE_MENU = "_menus";// 用户缓存的菜单
    // public static final String USER_CACHE_DATA_SCOPE = "_data_scope";//
    // 缓存的datascope

    public static final String ROLE_SCOPE_ONLY_SELF = "0";// 角色数据范围，只包含自己
    public static final String ROLE_SCOPE_CONTAINS_SUBORDINATE = "1";// 角色数据范围，包含下级

    public static final String SERVER = PropertiesUtil.getProperty("server.path");
    public static final String NGINX = PropertiesUtil.getProperty("nginx.path");
    public static final boolean NGINX_CONTROL = "true".equals(PropertiesUtil.getProperty("project.nginxControl"));
    public static final String ATTACHMENT_PATH = PropertiesUtil.getProperty("attachment.path");
}
